package com.cykj.pos.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cykj.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 划拨-机具层级关系对象 allocation_relation
 *
 * @author weijianbo
 * @date 2025-01-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("allocation_relation")
public class AllocationRelation implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String posSn;

    /** 结算模板id */
    @Excel(name = "结算模板id")
    private Long settlementId;

    private BigDecimal settlementRate;

    private BigDecimal serviceFee;// 押金

    /** 代理id */
    @Excel(name = "代理id")
    private Long merchId;

    /** 代理名称 */
    @Excel(name = "代理名称")
    private String merchName;

    private Date createTime;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeStr;

    private Long level;

    private BigDecimal qrCodeRate;

    private BigDecimal d0Fee;// 单笔服务费

    private BigDecimal simFee;// 流量费

    private BigDecimal simFeeLast;// 非首次流量费

    private BigDecimal debitFee; // 借记卡费率

    private BigDecimal debitCap;// 借记卡封顶值

    private String commission;// 调价分成

    private String activeTime;// 激活时间

    private BigDecimal vip; //  会员

    private BigDecimal fortyEight ;
    private BigDecimal fiftyEight ;
    private BigDecimal sixty ;
    private BigDecimal sixtyEight ;
    private BigDecimal seventySeven ;
    private BigDecimal seventyEight ;
    private BigDecimal eightyEight ;
    private BigDecimal ninetyEight ;
    private BigDecimal ninetyNine ;



    @TableField(exist = false)
    private List<String> snList;

    @TableField(exist = false)
    private Long userId;
    @TableField(exist = false)
    private List<Long> posIds;
    @TableField(exist = false)
    private List<Map<String,Object>> flowList;

    private BigDecimal standardCashback;

    @TableField(exist = false)
    private String detailId;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

    @TableField(exist = false)
    private String value;
    @TableField(exist = false)
    private String field;
}
